package com.lixixi.tingshu.search.api;

import com.lixixi.tingshu.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("search-service")
public interface SearchApiFeignClient {
	@GetMapping("/upperAlbum/{albumId}")
	Result upperAlbum(@PathVariable("albumId") Long albumId);

	@DeleteMapping("/lowerAlbum/{albumId}")
	Result lowerAlbum(@PathVariable("albumId") Long albumId);
}
